package Collection01;

import java.util.*;

/**
 * @Grup:Collection01
 * @Auther:cola
 * @Data:2021/3/28-2021-03-21:28
 * @version:1.0
 */
public class CollectionsDemo {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("jack");
        list.add("tom");

        list.add("lily");
        //Collections.reverse(list);
        //Collections.shuffle(list);
        //Collections.sort(list);
        //Collections.swap(list,1,2);
        Collections.rotate(list,1);
        System.out.println(list);
        System.out.println(Collections.binarySearch(list,"tom"));
        List<String> synclist= Collections.synchronizedList(new ArrayList<String>());
        List<String> sList=Collections.emptyList();
    }

    public static List<String> query(){
        List<String> list=null;

        return Collections.emptyList();
    }
}
